package com.wangjiyuan.giftshuo.adapter;

import android.content.Context;
import android.support.v4.view.PagerAdapter;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.jude.rollviewpager.RollPagerView;
import com.jude.rollviewpager.adapter.LoopPagerAdapter;

import java.util.List;

/**
 * Created by wjy on 2016/11/17.
 */

public class ADPagerAdapter extends LoopPagerAdapter {

    private List<ImageView> imageViews;

    public ADPagerAdapter(RollPagerView viewPager, List<ImageView> imageViews) {
        super(viewPager);
        this.imageViews = imageViews;
    }


    @Override
    public View getView(ViewGroup container, int position) {
        return imageViews.get(position);
    }

    @Override
    public int getRealCount() {
        return imageViews.size();
    }

}
